// compile: g++ -o foldexpr foldexpr.cc -std=c++17
// run: ./foldexpr
#include <iostream>

using namespace std;

template <typename... T>
auto Average(T... arg) {
  return (arg + ...) / sizeof...(arg);
}

void Test1() { cout << Average(2, 34, 45.45, -5, 6) << endl; }
void Test2() {}
int main() {
  Test1();
  Test2();
  return 0;
}
